package com.swx.identityservice.service.impl;


import com.swx.identityservice.mapper.ScbpRolePermissionMapper;
import com.swx.identityservice.models.ScbpRolePermission;
import com.swx.identityservice.service.ScbpRolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @version V1.0.0
 * @date 2018/6/4 0004 23:23
 */
@Service
public class ScbpRolePermissionServiceImpl extends CrudServiceImpl<ScbpRolePermission> implements ScbpRolePermissionService {
    @Autowired
    private ScbpRolePermissionMapper mapper;

    @Override
    public int deletePermissionByRoleId(Integer id) {
        return mapper.deletePermissionByRoleId(id);
    }

    @Override
    public int selectCountByRoleId(Integer id) {
        return mapper.selectCountByRoleId(id);
    }

    @Override
    public List<ScbpRolePermission> getpermissionbyroleid(Integer id) {
        return mapper.getpermissionbyroleid(id);
    }
}
